package yz.cp.back.auth.sign;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Request {
    private String appId;
    private String sign;
    private String timestamp;
    private String format="json";
    private String v="1.0";
    private String signType="md5";
    private String nonceStr;
    private Map<String,String> map;

    public void join(){
        map.put("appId",appId);
        map.put("timestamp",timestamp);
        map.put("format",format);
        map.put("v",v);
        map.put("signType",signType);
        map.put("nonceStr",nonceStr);
    }
}
